//
// Created by Administrator on 2021/5/24.
//
#include "iostream"
#include "string"
using namespace std;

struct Student{
    string name;
    int age;
    int grade;
};

int main(){

    struct Student stuArray[3]={
            {"zhangsna", 18, 100},
            {"lisi", 20, 95},
            {"wangwu", 15, 60}
    };

    stuArray[2].name = "zhaoliu";
    stuArray[2].age = 25;
    stuArray[2].grade = 55;

    for (int i = 0; i < 3; i++) {
        cout << " name: " << stuArray[i].name
        << " age: " << stuArray[i].age
        << " grade: " << stuArray[i].grade << endl;
    }

    system("pause");

    return 0;

}